package com.gcxy.dto.agency;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;

/**
 * Copyright (C), 2024-2024, BUG闭退！
 * Author: Huang先森
 * Date: 2024/7/24 12:31
 * FileName: AgencyDTO
 * Description:
 */

@Data
public class AgencyDTO {

    @ApiModelProperty("组织id")
    private Integer id;

    @NotBlank(message = "组织名称不能为空")
    @Length(max = 20, message = "组织名称不能超过20个字符")
    @ApiModelProperty("组织名称")
    private String name;

    @Length(max = 100, message = "组织描述不能超过100个字符")
    @ApiModelProperty("组织描述描述")
    private String msg;

}
